package com.neusoft.service;

import com.neusoft.core.User;
public interface UserService {

    public User getUserByIdByPass(User user);
    public int getUserById(String userId);
    public int saveUser(User user);
    public int updateUserImg(String userImg, String userId);
    public void updateUserTypeByUserId(String userId, Integer businessId);
    public int getPointByUser(String userId);


        /**
         * 根据用户ID获取虚拟钱包ID
         * @param userId 用户ID
         * @return 钱包ID
         * @throws Exception 如果查询过程中发生异常
         */
public Integer getWalletIdByUserId(String userId) throws Exception;

    void updateWalletId(String userId, int walletId);


        /**
         * 根据商家ID获取用户ID
         * @param businessId 商家ID
         * @return 用户ID
         * @throws Exception 如果查询过程中发生异常
         */
    public String getUserIdByBusinessId(Integer businessId) throws Exception;
}
